set tButtonState to word 2 of the name of member the memberNum of sprite the clickOn of castLib the castLibNum of sprite the clickOn
if tButtonState = "downState" then
exit
else
hMakeSound("startupClick.aif", 1)
case tButtonState of
"upState":
if hValidClick01() = 1 then
hButtonScripts(tButtonState)
end if
"rolloverState":
if hValidClick02() = 1 then
hButtonScripts(tButtonState)
end if
end case
end if
end
on hButtonScripts pButtonState
hChangeCursor("watch")
if pButtonState = "rolloverState" then
hUndoButtonRollover()
end if
repeat while soundBusy(1)
end repeat
puppetSound(1, 0)
hDoQuickTimeInstallation()
end
on hDoQuickTimeInstallation
if (the machineType = 256) and (the platform = "Windows,16") then
alert("If you are installing QuickTime, please select 'DELETE' after all prompts to delete the old files. Use Alt-Tab to get back to the application.")
set tInstaller to the pathName & "QTFOLDER\QT16INST.EXE"
else
if (the machineType = 256) and (the platform = "Windows,32") then
alert("If you are installing QuickTime, please select 'DELETE' after all prompts to delete the old files. Close 'QuickTime For Windows' to get back to the application.")
set tInstaller to the pathName & "QTFOLDER\QT32INST.EXE"
else
alert("Installing QuickTime for the Macintosh will shut down all running applications and restart your computer. Please reopen this application after the restart.")
set tInstaller to the pathName & "QuickTime folder:QuickTime‚Ñ¢ Install Disk 1:Installer"